package org.dromara.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;

/**
 * 社交关联对象 sys_user_social
 *
 * @author Denny
 * @date 2025-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user_social")
public class SysUserSocial extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 社交平台的类型
     */
    private Integer type;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * openid
     */
    private String openId;

    /**
     * unionid
     */
    private String unionId;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private String delFlag;


}
